/**
 * 
 */
package com.lanswon.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lanswon.dao.VerificationMapper;
import com.lanswon.entity.Verification;

/**
 * 
 * @ClassName: AboutService.java
 * @Description: 该类的功能描述
 *
 * @version: v1.0.0
 * @author: zm
 * @date: 2018年6月20日 上午10:17:47
 *
 */
@Service
public class VerificationService {
	@Autowired
	private VerificationMapper verificationMapper;

	public Verification findVerificationByPhone(String phone) {
		
		return verificationMapper.selectVerificationByPhone(phone);
	}

	public void addVerification(Verification verify) {
		verificationMapper.insert(verify);
	}

	public void updateVerification(Verification verify) {
		verificationMapper.updateByPrimaryKeySelective(verify);
	}

	public void updateVerificationByPhone(Verification verify) {
		verificationMapper.updateVerificationByPhone(verify);
	}

	
	
}
